<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/fuman/css/style.default.css" type="text/css" />
<script language="javascript">
function checkson(sonid){
   if(document.getElementById("son"+sonid) != null){//判断有无子菜单
      //如果有子菜单，则子菜单的所有check状态和父亲一样
      var inputs = document.getElementsByName("shopname[]");
      for(var i=0;i<inputs.length;i++){
         if(inputs[i].id == "son"+sonid){
            if(document.getElementById("pre"+sonid).checked == true){
               inputs[i].checked = true;
            }else{
               inputs[i].checked = false;;
            }
         }
      }
   }
}

function searchform()
	{
		$("#timeerr").html('');
		if($("#starttime").val()=="")
		{
			$("#timeerr").html('<font color=red>请输入查询时间！</font>');
			return false;
		}
		
		if($("#endtime").val()=="")
		{
			$("#timeerr").html('<font color=red>请输入查询时间！</font>');
			return false;
		}
		 var vote_arr = document.getElementsByName("shopname[]");
		 var idarr = new Array();
		var i=0;
		var str="";
		for(var j = 0; j < vote_arr.length; j++)
		{
		   if(vote_arr[j].checked == true)
		   {
			   idarr[i] = vote_arr[j].value;
			   str += vote_arr[j].value+",";
			   i++;
		   }
		   
		}
		if(i<=0){
			alert("未选中店铺！");
			return false;
		}
		
		$("#otherForm").submit();
	}
</script>
<body class="withvernav" >
 <div class="centercontent">
 <div class="pageheader notab">
      <h1 class="pagetitle">店铺发货报表 </h1>
      <span class="pagedesc">发货时间：仓库扫件出货的时间段,订单包含近期几个月内的订单<br></span>
      <span class="pagedesc">订单时间：当同时选择了订单时间和发货时间，表示在发货时间段内；筛选出符合订单时间内的数据<br></span>
      <div class="menulist">
        <ul class="profile_summary">
        </ul>
      </div>
    </div>
</div>
<div class="bodywrapper">
    <!--pageheader-->
    <form class="stdform stdform2"  id="otherForm" method="post" action="/datareport/ajaxbutton?op=searchscanorderPro">
    
     <div id="contentwrapper" class="contentwrapper">
        <form class="stdform stdform2"  id="otherForm" method="post" action="/datareport/ajaxbutton?op=searchscanorderPro">
      <div class="tableoptions" style="padding-bottom:2px;padding-left:12px;">
      发货时间：
     <input type="text"  name="starttime" id="starttime" value="{{$starttime}}" onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" />
                  -
     <input type="text"  name="endtime" value="{{$endtime}}" id="endtime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" />
      <input name="isform" type="radio" value="1">马帮
                  <input name="isform" type="radio" value="2">新系统
                  <input name="isform" type="radio" value="0" checked>全部
       <span id="search_list">{{$shopname|getstr:48:0}}</span>
       <input name="shopname" id="shopname" type="hidden" value="{{$shopname}}" />
       <span id="choose_shop_btn" style="border:1px solid #ccc;padding:6px 5px 7px;border-radius:3px;cursor:pointer;" onClick="getShopList()">选择店铺 <img src="/fuman/images/search_down.png" width="14" height="21" align="absmiddle" style="margin-bottom:-4px;"></span>
       订单时间 <input type="text"  name="ordertime" value="{{$ordertime}}" id="ordertime" onClick="WdatePicker({dateFmt:'yyyy-MM '})" class="width100 hasDatepicker" />
        <button class="btn btn_orange btn_search radius50">Search</button>

    </form>
    </div>
    
    
  
  </div>
  <!-- centercontent --> 
  
</div>
<div style="position:absolute;z-index:999;top:105px;border:1px solid #666;left:220px;width:870px;background:#f5f5f5;padding:6px 10px;height:450px;margin-bottom:40px;display:none;" id="ajax_box">
<div style="padding-top:8px;padding-left:12px;height:28px;"><h4 style="float:left">选择要搜索的店铺</h4><span style="float:right">
  <input type="button" name="button" id="button" onClick="setShopInfo()" value="确定选择">&nbsp;&nbsp;
  <input type="button" value="关闭弹层" onClick="closeShowBox()">
</span></div>
<div id="shop_box" style="height:400px;overflow:auto"></div>
</div>
<script type="text/javascript" src="/fuman/js/report.js"></script>

<script>
function checkCountry(){
   if(window.opener.document.getElementById("shopnameid") != null){
      var checkcountryname = window.opener.document.getElementById("shopnameid").value;
      if(checkcountryname.length > 0){
         checkcountryname = ";"+checkcountryname+";";
         var objs = document.getElementsByName("shopname");
         
         if(objs != null && objs.length > 0){
            for(var i=0;i<objs.length;i++){
               if(checkcountryname.indexOf(";"+objs[i].value+";") >= 0){
                  //alert("包含");
                  objs[i].checked = true;
               }
            }
         }
      }
   }
}
checkCountry();
</script>

<!--bodywrapper-->
</body>
</html>